package com.fy.exception;

import com.fy.common.HttpStatusEnum;

public class LoginException extends RuntimeException{

    /**
     * @Description 自定义状态码
     **/
    private int code;
    public LoginException(HttpStatusEnum httpStatusEnum) {
        super(httpStatusEnum.getDescription());
        code = httpStatusEnum.getCode();
    }

    public int getCode() {
        return code;
    }
}